from django.db import models


# Create your models here.
# 采集数据量统计表
class cjdata(models.Model):
    table = models.CharField(max_length=32, null=True)   # 采集表名
    country = models.CharField(max_length=32, null=True) # 国家名
    website = models.CharField(max_length=1024, null=True)  # 模块名
    data = models.IntegerField()    # 采集数据量
    inbound_data = models.IntegerField()   # 入库数据量
    count_date = models.DateField(max_length=1024, null=True)     # 统计时间

    class Meta:
        db_table = "cj_data"  # 表在mysql中的名字
    #     verbose_name = '采集数据量表'
    #
    # def __str__(self):
    #     return self.cj_data

class jgdata(models.Model):
    table = models.CharField(max_length=32, null=True)   # 加工表名
    # country = models.CharField(max_length=32, null=True)    # 国家名
    language = models.CharField(max_length=32, null=True)   # 语种
    data_status = models.CharField(max_length=1024, null=True) # 数据状态
    data = models.IntegerField()   # 数据量
    count_date = models.DateField(max_length=1024, null=True)  # 统计时间

    class Meta:
        db_table = "jg_data"    # 表在mysql中的名字

class jgdata_country(models.Model):
    table = models.CharField(max_length=32)   # 加工表名
    country = models.CharField(max_length=32)    # 国家名
    # language = models.CharField(max_length=32, null=True)   # 语种
    data_status = models.CharField(max_length=1024) # 数据状态
    data = models.IntegerField()   # 数据量
    count_date = models.DateField(max_length=1024)  # 统计时间

    class Meta:
        db_table = "jg_data_country"    # 表在mysql中的名字